<!DOCTYPE html>
<script src="../resources/text-based-repaint.js"></script>
<script>
function repaintTest()
{
    var input = document.getElementById('input');
    input.style.backgroundColor = 'green';
    input.value = 'NEW';
}
window.onload = runRepaintAndPixelTest;
</script>
<style>
input {
    background-color: red;
    position: absolute;
    font-size: 20px;
    padding: 20px;
    width: 200px;
}
</style>
<input id="input" type="text" value="OLD">
